//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#include <eladef.h>
#include <stdarg.h>
#include <elasys_server.h>
#include <cmutex.h>

ELAPI _CSystem_FindRunningObject(
    WString name,
    PInterface *ppService)
{
    if (name.IsNull() || !ppService) {
        return E_INVALID_ARGUMENT;
    }

    //return CPseudoSyscall::FindRunningObject(name, ppService); // TODO:LG
    return E_NOT_IMPLEMENTED;
}

EXTERN_C ECode __stdcall CrtFindService(WString wszName, IInterface **ppObj)
{
    return _CSystem_FindRunningObject(wszName, ppObj);
}

ELAPI  _EzGetEnvironMutex(
    IMutex **ppEnvMutex)
{
    *ppEnvMutex = NULL;
    assert(0);
    return E_NOT_IMPLEMENTED;
}

EXTERN_C ECode CrtInitializeLock(PVoid* ppLock)
{
	return E_NOT_IMPLEMENTED;
}

EXTERN_C ECode CrtEnterLock(PVoid pLock)
{
	return E_NOT_IMPLEMENTED;
}

EXTERN_C ECode CrtLeaveLock(PVoid pLock)
{
	return E_NOT_IMPLEMENTED;
}

EXTERN_C ECode CrtDeleteLock(PVoid* ppLock)
{
	return E_NOT_IMPLEMENTED;
}
